<taglib name="Common\TagLib\Sohtml"/>
<div class="main-title"><h2>{$meta_title}</h2><span class="breadcrumb">[<a href="{:U('Role/role_list')}">类别管理</a><i>&raquo;</i><a href="__SELF__">{$meta_title}</a>]</span></div>
<div class="panel">
    <form action="{:U('ProductCategory/category_edit_save')}" method="post">
        <table class="table-form">
            <tr>
                <th>分类名称：</th><td><input type="text" name="category_name" placeholder="分类名称" value="{$data.category_name}" required/></td>
            </tr>
            <tr>
                <th>上级类别：</th><td>
            <sohtml:treeselect name="parent_id" datasource="ds_treeselect" value="{$data.parent_id}" />
            </td></tr>
            <tr>
                <th>状态：</th><td><sohtml:radio name="state" items="0=禁用;1=正常" value="{$data.state}" /></td></tr>
        </table>
        <button type="submit">保存</button><button type="reset">重置</button>
        <input type='hidden' value='{$data.id}' name='id'/>
    </form>
</div>